package com.cms.service;

import com.cms.entity.Freelance;
import com.cms.exception.DuplicateKeyException;

import java.util.HashMap;
import java.util.List;

public interface FreelanceService {

    List<Freelance> findAll();

    int insertFreelance (Freelance freelance) throws DuplicateKeyException;

    int updateFreelance (HashMap<String,String> updateMap) throws DuplicateKeyException;

    int deleteFreelance (String id);

    List<Freelance> findFreelanceById (String id);

    List<Freelance> findFreelanceByName (String name);

    List<Freelance> findFreelanceByTelephone (String telephone);

    List<Freelance> findFreelanceByEmail (String email);

    List<Freelance> findFreelanceByType (String type);
}
